package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Description: 站内信实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "ncloud_sys_notify_user")
public class NcloudSysNotifyUserEntity implements Serializable {

    /**
    * id
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    /**
    * 通知id
    */
    @Column(name = "notify_id" )
    private String notifyId;

    /**
    * 通知人
    */
    @Column(name = "user_id" )
    private String userId;

    /**
    * 状态(0:未读,1:已读)
    */
    @Column(name = "status", nullable = false )
    private String status;

    /**
    * 更新（读取）时间
    */
    @Column(name = "update_date" )
    private LocalDateTime updateDate;



}
